package com.ruoyi.consume.mapper;

import java.util.List;

import com.ruoyi.consume.domain.CartonApplyTemporaryCon;

/**
 * 纸箱临时领用Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-27
 */
public interface CartonApplyTemporaryConMapper
{
    /**
     * 查询纸箱临时领用
     *
     * @param cartonApplyTemporaryId 纸箱临时领用ID
     * @return 纸箱临时领用
     */
    public CartonApplyTemporaryCon selectCartonApplyTemporaryById(Long cartonApplyTemporaryId);

    /**
     * 查询纸箱临时领用列表
     *
     * @param cartonApplyTemporaryCon 纸箱临时领用
     * @return 纸箱临时领用集合
     */
    public List<CartonApplyTemporaryCon> selectCartonApplyTemporaryList(CartonApplyTemporaryCon cartonApplyTemporaryCon);

    /**
     * 新增纸箱临时领用
     *
     * @param cartonApplyTemporaryCon 纸箱临时领用
     * @return 结果
     */
    public int insertCartonApplyTemporary(CartonApplyTemporaryCon cartonApplyTemporaryCon);

    /**
     * 修改纸箱临时领用
     *
     * @param cartonApplyTemporaryCon 纸箱临时领用
     * @return 结果
     */
    public int updateCartonApplyTemporary(CartonApplyTemporaryCon cartonApplyTemporaryCon);

    /**
     * 删除纸箱临时领用
     *
     * @param cartonApplyTemporaryId 纸箱临时领用ID
     * @return 结果
     */
    public int deleteCartonApplyTemporaryById(Long cartonApplyTemporaryId);

    /**
     * 批量删除纸箱临时领用
     *
     * @param cartonApplyTemporaryIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteCartonApplyTemporaryByIds(Long[] cartonApplyTemporaryIds);

    /**
     * 更新库存量表
     *
     * @param cartonApplyTemporaryCon 纸箱临时领用
     * @return 结果
     */
    public int updateAmount(CartonApplyTemporaryCon cartonApplyTemporaryCon);

    /**
     * 更新领用状态
     *
     * @param cartonApplyTemporaryId 纸箱临时领用ID
     * @return 结果
     */
    public int updateConsumeStatus(Long cartonApplyTemporaryId);

    /**
     * 退回操作
     *
     * @param cartonApplyTemporaryId 纸箱临时领用ID
     * @return 结果
     */
    public int updateApprovalStatus(Long cartonApplyTemporaryId);
}
